repeat while pGrObject.getPixel(indexPoint.x, indexPoint.y) = colorBack
indexPoint.x = indexPoint.x - 1
end repeat
indexPoint.x = indexPoint.x + 1
repeat while pGrObject.getPixel(indexPoint.x, indexPoint.y) = colorBack
if pGrObject.getPixel(indexPoint.x, indexPoint.y - 1) = colorBack then
if newUpperSeedFound then
add(seedList, [#x: 0, #y: 0])
seedList[currentSeed].x = indexPoint.x
seedList[currentSeed].y = indexPoint.y - 1
currentSeed = currentSeed + 1
newUpperSeedFound = 0
end if
else
newUpperSeedFound = 1
end if
if pGrObject.getPixel(indexPoint.x, indexPoint.y + 1) = colorBack then
if newLowerSeedFound then
add(seedList, [#x: 0, #y: 0])
seedList[currentSeed].x = indexPoint.x
seedList[currentSeed].y = indexPoint.y + 1
currentSeed = currentSeed + 1
newLowerSeedFound = 0
end if
else
newLowerSeedFound = 1
end if
indexPoint.x = indexPoint.x + 1
if currentSeed > 120 then
return 0
end if
end repeat
repeat while pGrObject.getPixel(x - 1, y) = colorBack
x = x - 1
end repeat
pGrObject.draw(x, y, indexPoint.x, y, [#shapeType: #line, #lineSize: 1, #color: colorData])
i = 1
repeat while i < currentSeed
if fvFill(seedList[i].x, seedList[i].y, colorData, colorBack) = 0 then
return 0
end if
i = i + 1
end repeat
return 1
end
on getPropertyDescriptionList
return [#ColourHex: [#comment: "Hexidecimal Colour ie. FE2437", #format: #string, #default: "FFFFFF"], #memberNumber: [#comment: "The Member Number to be filled", #format: #member, #default: EMPTY], #mySquishSound: [#comment: "Sound Name for Paint Dab", #format: #sound, #default: "squish"]]